const checkLogin  = function(backpage, backtype){
	var SUID  = uni.getStorageSync('SUID');
	var SRAND = uni.getStorageSync('SRAND');
	var SNAME = uni.getStorageSync('SNAME');
	var SFACE = uni.getStorageSync('SFACE');
	if(SUID == '' || SRAND == '' || SFACE == ''){
		uni.redirectTo({
			url:"../login/login?backpage="+backpage+"&backtype="+backtype
		});
		return false;
	}
	return [SUID, SRAND, SNAME, SFACE];
}
const APITOKEN  = 'api2018';
const apiServer    = 'http://127.0.0.1/index.php?token='+APITOKEN+'&c=';
const staticServer = 'http://127.0.0.1/';

export default{
	checkLogin,
	apiServer,
	staticServer
}